// 产品参数接口
export interface ProductSpec {
  [key: string]: string | number | boolean | { value: any; image?: string };
}

// 产品接口
export interface Product {
  id: string;
  name: string;
  category: string;
  subcategory: string;
  specs: ProductSpec;
  image?: string;
}

// 产品分类接口
export interface Category {
  id: string;
  name: string;
  subcategories: Subcategory[];
}

// 产品子分类接口
export interface Subcategory {
  id: string;
  name: string;
  products: Product[];
}

// Excel工作表数据接口
export interface ExcelData {
  fileName: string;
  sheetName: string;
  data: any[][];
  images?: { [key: string]: string };
}

// 视图类型
export type ViewType = 'selector' | 'comparison';

// 应用状态接口
export interface AppState {
  categories: Category[];
  selectedProducts: Product[];
  loading: boolean;
  error: string | null;
  currentView: ViewType;
  selectedCategoryId: string | null;
  selectedSubcategoryId: string | null;
} 